<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Recharge extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'    =>    ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        "id" => "require",
        "account" => "require",
        "mode" => "require",
        "amount" => "require",
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名'    =>    '错误信息'
     *
     * @var array
     */
    protected $message = [
        'id.require' => '未查询到要充值的会员',
        'account.require' => '请选择要充值的账户',
        'mode.require' => '请选择充值方式',
        'amount.require' => '请填写充值金额',

    ];
}
